package gates;

import java.math.*;
import java.awt.Graphics;


import master.*;

public class Cphasetest {
		public static void main(String[] args) {
			
			int N = 4;
			int dim = (int)Math.pow(2, N);
			QuantumRegister Qreg = new QuantumRegister(N);
			Qreg.setState(12);
			CPhaseShift shift = new CPhaseShift(3,2,0.423);
			CPhaseShift.actOnReg(Qreg);
			for(int n = 0;n<dim;n++) {
				float a = Qreg.getCoefficient(n).magnitudeFloat();
				System.out.println("Coefficient: " +n+" "+a);
			}
		}
}